package com.itany.corejava.day07;

public class Test1 {

    public int i;

    public final int j=5;

    public final int k;

    public static int count;

    public static void f(){
        System.out.println("Test1.f");
        System.out.println("count = " + count);
//        System.out.println("i = " + i);
//        fn();
    }

    public void fn(){
        System.out.println("Test1.fn");
        System.out.println("i = " + i);
        System.out.println("count = " + count);
//        f();
    }

    public Test1() {
        k=7;
        i++;
        count++;
    }

    public static void main(String[] args) {

        new Test1();
        new Test1();
        new Test1();
        Test1 test1=new Test1();

        System.out.println("Test1.count = " + Test1.count);
        System.out.println("test1.i = " + test1.i);

        Test1.f();

        System.out.println("test1.count = " + test1.count);











        
        
//        final int i;
//        i=6;
//
//        System.out.println("i = " + i);
//
////        i=8;
//
//        final Test1 test1=new Test1();
//
////        test1=new Test1();
//
//        System.out.println("test1.i = " + test1.i);
//
//        test1.i=7;
//
//        System.out.println("test1.i = " + test1.i);
//
//        System.out.println("test1.k = " + test1.k);
//
////        test1.k=8;
        
    }
}
